import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

// 引入uview
import uView from "uview-ui";
Vue.use(uView);

// 引入状态管理
import store from '@/store';
// state注入
const vuexStore = require('@/store/store_mixin.js');
Vue.mixin(vuexStore);

// 注入全局页面拦截等公共mixin
const baseMixin = require('@/mixins/base.js');
Vue.mixin(baseMixin);

const app = new Vue({
	store,
    ...App
})

// http接口API抽离，免于写url或者一些固定的参数
import httpApi from '@/api/index.js';
Vue.use(httpApi, app);

app.$mount()
